package com.test.lotterysystem.Comment.Utils;

import com.test.lotterysystem.Controller.Result.UserRegisterResult;
import com.test.lotterysystem.Service.DTO.UserRegisterDTO;
import org.springframework.beans.BeanUtils;

public class MyBeanUtil {
    public static UserRegisterResult transOfUserRegisterResult(UserRegisterDTO userRegisterDTO){
        UserRegisterResult userRegisterResult = new UserRegisterResult();
        BeanUtils.copyProperties(userRegisterDTO,userRegisterResult);
        return userRegisterResult;
    }
}
